﻿<Window
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
		xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" xmlns:h="http://helix-toolkit.org/wpf"
	xmlns:wpf="clr-namespace:HelixToolkit.Wpf"
	x:Class="IMPressive.Graph3DWindow"
		Height="500" Width="725" Loaded="Window_Loaded" SizeChanged="Window_SizeChanged" Icon="icon.ico" WindowStartupLocation="CenterOwner">
    <Window.Resources>

    </Window.Resources>
    <Grid>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFEDF4FC" Offset="0"/>
                <GradientStop Color="#FFD9E4F1" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid Margin="0,52,0,40" Background="White">
            <h:HelixViewport3D x:Name="mainViewport" Margin="0" ShowCoordinateSystem="True" CameraRotationMode="Turntable" ModelUpDirection="0,0,1" BorderBrush="Black">
                <!--<h:HelixViewport3D.Camera>
				<PerspectiveCamera x:Name="camera" 
					FarPlaneDistance="10"
					NearPlaneDistance="1" 
					LookDirection="0,0,-1"
					UpDirection="0,1,0"
					Position="0,0,2"
                                    />
			</h:HelixViewport3D.Camera>-->
                <h:HelixViewport3D.Camera>
                    <PerspectiveCamera x:Name="camera" Position="5, 30, 40"  LookDirection="-5, -30, -40" FieldOfView="45" UpDirection="0,0,1"/>
                </h:HelixViewport3D.Camera>

                <h:CoordinateSystemVisual3D ArrowLengths="5" />
                <h:GridLinesVisual3D Normal="0,0,1" LengthDirection="1,0,0"/>
                <!--<h:ArrowVisual3D Point2="8 0 0" Fill="#964B4B" Diameter="0.25" />
			<wpf:TextBillboardVisual3D  Position="9 -2 1" Text="X" Height="10" />
			<h:ArrowVisual3D Point2="0 8 0" Fill="#4B964B" Diameter="0.25" />
			<wpf:TextBillboardVisual3D Position="-2 9 1" Text="Y" Height="10" />
			<h:ArrowVisual3D Point2="0 0 8" Fill="#4B4B96" Diameter="0.25" />
			<wpf:TextBillboardVisual3D Position="-2 -1 9" Text="Z" Height="10" />-->
                <ModelVisual3D x:Name="Light1">
                    <ModelVisual3D.Content>
                        <DirectionalLight Color="White" Direction="1,1,-1"/>
                    </ModelVisual3D.Content>
                </ModelVisual3D>
            </h:HelixViewport3D>
        </Grid>
        <Button x:Name="btnLoad" Content="OK" HorizontalAlignment="Right" Margin="0,10,85,0" VerticalAlignment="Top" Width="76" BorderBrush="#FF8696AA" Style="{StaticResource NormalButton}" Height="26" Click="btnLoad_Click" HorizontalContentAlignment="Left" VerticalContentAlignment="Top" Foreground="#FF1E395B"/>
        <Border BorderThickness="1" Margin="10,10,252,0" Padding="5" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Background="White" SnapsToDevicePixels="False" VerticalAlignment="Top">
            <controls:AutoCompleteBox x:Name="txtOperation" Height="24" Margin="-5" VerticalAlignment="Top" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="sin(4xy)" HorizontalContentAlignment="Stretch" SelectionChanged="txtOperation_SelectionChanged" DropDownClosed="txtOperation_DropDownClosed">
                <controls:AutoCompleteBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </controls:AutoCompleteBox.Background>
            </controls:AutoCompleteBox>
        </Border>
        <Button x:Name="btnClear" Content="Effacer" HorizontalAlignment="Right" Margin="0,10,4,0" VerticalAlignment="Top" Width="76" BorderBrush="#FF8696AA" Style="{StaticResource NormalButton}" Height="26" HorizontalContentAlignment="Left" VerticalContentAlignment="Top" Click="btnClear_Click" Foreground="#FF1E395B"/>
        <Border BorderThickness="1" Margin="0,10,166,0" Padding="0" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Width="81" SnapsToDevicePixels="False" HorizontalAlignment="Right" VerticalAlignment="Top">
            <Border x:Name="bg2" BorderThickness="1" BorderBrush="White" CornerRadius="1">
                <xctk:ColorPicker x:Name="cpxColor" HorizontalAlignment="Left"  VerticalAlignment="Top" Height="24" Width="80" Margin="-1,-1,-2,-1" SelectedColor="Red" AvailableColorsHeader="Couleurs disponibles" StandardColorsHeader="Couleurs standards" RecentColorsHeader="Couleurs récentes" ShowAdvancedButton="False" BorderBrush="{x:Null}" Foreground="#FF1E395B">
                    <xctk:ColorPicker.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFF0F6FB" Offset="0"/>
                            <GradientStop Color="#FFD7E2EF" Offset="1"/>
                            <GradientStop Color="#FFE2EAF3" Offset="0.5"/>
                            <GradientStop Color="#FFD5E0ED" Offset="0.5"/>
                        </LinearGradientBrush>
                    </xctk:ColorPicker.Background>
                </xctk:ColorPicker>
            </Border>
        </Border>
        <TextBlock HorizontalAlignment="Left" Margin="9,0,0,6" TextWrapping="Wrap" Text="Pour x de" VerticalAlignment="Bottom" FontSize="14"/>
        <Border BorderThickness="1" Margin="72,0,0,6" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Padding="5" Background="White" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="76" MinWidth="76">
            <TextBox x:Name="txtFromX" Height="24" Width="75" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="-10" Margin="-5" SnapsToDevicePixels="False" VerticalAlignment="Bottom">
                <TextBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </TextBox.Background>
            </TextBox>
        </Border>
        <Border BorderThickness="1" Margin="165,0,0,6" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Padding="5" Background="White" SnapsToDevicePixels="False" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="76">
            <TextBox x:Name="txtToX" Height="24" Width="75" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="10" Margin="-5" HorizontalContentAlignment="Stretch" VerticalAlignment="Bottom">
                <TextBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </TextBox.Background>
            </TextBox>
        </Border>
        <Border BorderThickness="1" Margin="279,0,0,6" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Padding="5" Background="White" SnapsToDevicePixels="False" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="76">
            <TextBox x:Name="txtPasX" Height="24" Width="75" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="0,1" Margin="-5" HorizontalContentAlignment="Stretch" VerticalAlignment="Bottom">
                <TextBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </TextBox.Background>
            </TextBox>
        </Border>
        <TextBlock HorizontalAlignment="Left" Margin="153,0,0,6" TextWrapping="Wrap" Text="à" VerticalAlignment="Bottom" FontSize="14"/>
        <TextBlock HorizontalAlignment="Left" Margin="246,0,0,6" TextWrapping="Wrap" Text="pas :" VerticalAlignment="Bottom" FontSize="14"/>
        <Border BorderThickness="1" Margin="405,0,0,6" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Padding="5" Background="White" SnapsToDevicePixels="False" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="76">
            <TextBox x:Name="txtFromY" Height="24" Width="75" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="-10" Margin="-5" HorizontalContentAlignment="Stretch" VerticalAlignment="Bottom">
                <TextBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </TextBox.Background>
            </TextBox>
        </Border>
        <Border BorderThickness="1" Margin="498,0,0,6" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Padding="5" Background="White" SnapsToDevicePixels="False" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="76">
            <TextBox x:Name="txtToY" Height="24" Width="75" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="10" Margin="-5" HorizontalContentAlignment="Stretch" VerticalAlignment="Bottom">
                <TextBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </TextBox.Background>
            </TextBox>
        </Border>
        <Border BorderThickness="1" Margin="612,0,0,6" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Padding="5" Background="White" SnapsToDevicePixels="False" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="76">
            <TextBox x:Name="txtPasY" Height="24" Width="75" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" Text="0,1" Margin="-5" HorizontalContentAlignment="Stretch" VerticalAlignment="Bottom">
                <TextBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </TextBox.Background>
            </TextBox>
        </Border>
        <TextBlock HorizontalAlignment="Left" Margin="486,0,0,6" TextWrapping="Wrap" Text="à" VerticalAlignment="Bottom" FontSize="14"/>
        <TextBlock HorizontalAlignment="Left" Margin="359,0,0,6" TextWrapping="Wrap" Text="et y de" VerticalAlignment="Bottom" FontSize="14"/>
        <TextBlock HorizontalAlignment="Left" Margin="579,0,0,6" TextWrapping="Wrap" Text="pas :" VerticalAlignment="Bottom" FontSize="14"/>
    </Grid>
</Window>
